package www.openteam.com.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by OT on 2018-01-09.
 */

public class IPQCMsg00 {

    /**
     * status : 1
     * info : 成功
     * data : {"data":[{"ProduceNo":"DPO16110948","groupname":"","PartID":"正面","custid":"st01","custName":"硕天科技股份有限公司","orderno":"DSO16110254","onumb":"1020","code":"dgADK16-18751","name":"G18-1106010-01","reqnumb":"727","procno":"2010","procname":"印刷","stype":"01","morecom":"D","PID":5,"zbid":62565},{"ProduceNo":"DPO16111022","groupname":"","PartID":"","custid":"xy02","custName":"兴英科技(深圳)有限公司","orderno":"DSO16110367","onumb":"1021","code":"dgACH16-01554","name":"42-014-KT2101*","reqnumb":"1161","procno":"2010","procname":"印刷","stype":"01","morecom":"D","PID":4,"zbid":62911},{"ProduceNo":"DPO16110949","groupname":"","PartID":"正面","custid":"st01","custName":"硕天科技股份有限公司","orderno":"DSO16110254","onumb":"1020","code":"dgADK16-18742","name":"G18-1106011-01","reqnumb":"687","procno":"2010","procname":"印刷","stype":"01","morecom":"D","PID":5,"zbid":62566},{"ProduceNo":"DPO16110970","groupname":"","PartID":"","custid":"qs01","custName":"诠盛电器","orderno":"DSO16110250","onumb":"11227","code":"dgDCH16-14653","name":"NKCB-C01JA01","reqnumb":"11783","procno":"2010","procname":"印刷","stype":"01","morecom":"D","PID":4,"zbid":62828},{"ProduceNo":"DPO16110313-B01","groupname":"","PartID":"","custid":"wq01","custName":"崴强科技股份有限公司","orderno":"DSO16110103","onumb":"714","code":"dgACH14-00074","name":"7261-0818-09AA","reqnumb":"679","procno":"2010","procname":"印刷","stype":"01","morecom":"D","PID":4,"zbid":61736},{"ProduceNo":"DPO16110849","groupname":"","PartID":"","custid":"xj02","custName":"旭基有限公司","orderno":"DSO16110329","onumb":"13753","code":"dgDCH16-18753","name":"866-00466-13A","reqnumb":"11407","procno":"2010","procname":"印刷","stype":"01","morecom":"D","PID":4,"zbid":61806},{"ProduceNo":"DPO16110932","groupname":"","PartID":"","custid":"xj02","custName":"旭基有限公司","orderno":"DSO16110329","onumb":"15009","code":"dgDCH16-14883","name":"866-01973-00E","reqnumb":"11946","procno":"2010","procname":"印刷","stype":"01","morecom":"D","PID":4,"zbid":62363}]}
     */

    private int status;
    private String info;
    private DataBeanX data;

    public static List<IPQCMsg00> arrayIPQCMsg00FromData(String str) {

        Type listType = new TypeToken<ArrayList<IPQCMsg00>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX {
        private List<DataBean> data;

        public static List<DataBeanX> arrayDataBeanXFromData(String str) {

            Type listType = new TypeToken<ArrayList<DataBeanX>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * ProduceNo : DPO16110948
             * groupname :
             * PartID : 正面
             * custid : st01
             * custName : 硕天科技股份有限公司
             * orderno : DSO16110254
             * onumb : 1020
             * code : dgADK16-18751
             * name : G18-1106010-01
             * reqnumb : 727
             * procno : 2010
             * procname : 印刷
             * stype : 01
             * morecom : D
             * PID : 5
             * zbid : 62565
             */

            private String ProduceNo;
            private String groupname;
            private String PartID;
            private String custid;
            private String custName;
            private String orderno;
            private String onumb;
            private String code;
            private String name;
            private String reqnumb;
            private String procno;
            private String procname;
            private String stype;
            private String morecom;
            private int PID;
            private int zbid;

            public static List<DataBean> arrayDataBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<DataBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public String getProduceNo() {
                return ProduceNo;
            }

            public void setProduceNo(String ProduceNo) {
                this.ProduceNo = ProduceNo;
            }

            public String getGroupname() {
                return groupname;
            }

            public void setGroupname(String groupname) {
                this.groupname = groupname;
            }

            public String getPartID() {
                return PartID;
            }

            public void setPartID(String PartID) {
                this.PartID = PartID;
            }

            public String getCustid() {
                return custid;
            }

            public void setCustid(String custid) {
                this.custid = custid;
            }

            public String getCustName() {
                return custName;
            }

            public void setCustName(String custName) {
                this.custName = custName;
            }

            public String getOrderno() {
                return orderno;
            }

            public void setOrderno(String orderno) {
                this.orderno = orderno;
            }

            public String getOnumb() {
                return onumb;
            }

            public void setOnumb(String onumb) {
                this.onumb = onumb;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getReqnumb() {
                return reqnumb;
            }

            public void setReqnumb(String reqnumb) {
                this.reqnumb = reqnumb;
            }

            public String getProcno() {
                return procno;
            }

            public void setProcno(String procno) {
                this.procno = procno;
            }

            public String getProcname() {
                return procname;
            }

            public void setProcname(String procname) {
                this.procname = procname;
            }

            public String getStype() {
                return stype;
            }

            public void setStype(String stype) {
                this.stype = stype;
            }

            public String getMorecom() {
                return morecom;
            }

            public void setMorecom(String morecom) {
                this.morecom = morecom;
            }

            public int getPID() {
                return PID;
            }

            public void setPID(int PID) {
                this.PID = PID;
            }

            public int getZbid() {
                return zbid;
            }

            public void setZbid(int zbid) {
                this.zbid = zbid;
            }
        }
    }
}
